package com.atom.app.mvvm.net.bean


import com.fasterxml.jackson.annotation.JsonProperty

class UpdateUserInfo {
    @JsonProperty("parentName")
    var parentName: String = " "

    @JsonProperty("passWord")
    var passWord: String? = null

    @JsonProperty("phoneNo")
    var phoneNo: String? = null

    @JsonProperty("roleId")
    var roleId: Int? = null

    @JsonProperty("trueName")
    var trueName: String? = null

    @JsonProperty("userName")
    var userName: String? = null

    fun set(data: UserInfo.Data) {
        userName = data.pk
        passWord = data.fields?.passWord
        trueName = data.fields?.trueName
        phoneNo = data.fields?.phoneNo
        roleId = data.fields?.roleId
        parentName = data.fields?.parentName ?: " "
    }
}